{extend name="public:base" /}
{block name="main"}

    <div class="ShareAnyContainer" style="font-size: 14px;">
        当前位置：<a href="{:url('shop/index/index')}" title="首页">首页</a>&nbsp;&nbsp;/&nbsp;&nbsp;<a
            href="{:url('shop/artist/group')}" title="艺术家">艺术家</a>
    </div>
    <div class="ShareAnySeparate"></div>
    <div class="ShareAnyContainer">
        <div class="line"></div>
    </div>
    <div class="ShareAnySeparate"></div>
    <div class="ShareAnyContainer">
        <div class="ShareAnyLeft artistBig">
            <img src="/{$info['getimgpath']['path']}">
        </div>
        <div class="ShareAnyLeft" style="margin-top: 100px;line-height: 30px;">
            <p style="font-size: 16px; font-weight: bold;">{$info['name']}</p>

            <p>{$info['location']}</p>

            <p>{$info['title']}</p>
        </div>
        <div class="ShareAnyClear"></div>
    </div>
    <div class="ShareAnySeparate"></div>
    <div class="ShareAnyContainer">
        <div class="line"></div>
    </div>
    <div class="ShareAnySeparate"></div>
    <div class="ShareAnyContainer">
        <div class="work">
            <ul>
                {volist name="artwork" id="vo"}
                    {if condition="$key lt 4"}
                        <li>
                            <a href="{:url('shop/artwork/detail',['id'=>$vo['id']])}">
                                <img src="/{$vo['img']['0']}">
                            </a>
                            <span>
                                <br>{$vo['title']|mb_substr=###,0,18,'utf-8'}<br>作者：{$vo['getartist']['name']}
                                {notempty  name="user"}
                                    <br>价格：￥{$vo['price']}
                                {/notempty}
                            </span>
                        </li>

                        {else/}

                        <li class="more" style="display: none;">
                            <a href="{:url('shop/artwork/detail',['id'=>$vo['id']])}">
                                <img src="{$data['upload']}/{$artwork['picture']}">
                            </a>
                            <span><br>{$vo['title']|mb_substr=###,0,18,'utf-8'}<br>作者：{$vo['getartist']['name']}
                            {notempty  name="user"}
                                    <br>价格：￥{$vo['price']}
                            {/notempty}
                        </span>
                        </li>
                    {/if}
                {/volist}
            </ul>
        </div>
        <div class="ShareAnyClear"></div>
        <div style="text-align: center;" class="show_hide"><a href="javascript:void(0);">更多...</a></div>
        <div style="text-align: center;display: none;" class="hide_hide"><a href="javascript:void(0);">收起</a></div>
    </div>
    <div class="ShareAnySeparate"></div>
    <div class="ShareAnyContainer">
        <!--cnzz tui-->
        <script type="text/javascript" c=gd charset="utf-8" src="http://tui.cnzz.net/cs.php?id=1000097169"></script>
        <!--cnzz tui-->

    </div>
    <if condition="$data['artist']['resume'] neq ''">
        <div class="ShareAnySeparate"></div>
        <div class="ShareAnyContainer">
            <div class="line"></div>
        </div>
        <div class="ShareAnySeparate"></div>
        <div class="ShareAnyContainer">
            <div class="ShareAnyLeft" style="width: 300px;">
                <div class="titleBig">
                    简历
                </div>
                <div class="titleBig">
                    Curriculum vitae
                </div>
            </div>
            <div class="ShareAnyLeft" style="width:100%; line-height: 30px;">
                {$info['resume']}
            </div>
            <div class="ShareAnyClear"></div>
        </div>
    </if>
    <if condition="$data['artist']['exhibit'] neq ''">
        <div class="ShareAnySeparate"></div>
        <div class="ShareAnyContainer">
            <div class="line"></div>
        </div>
        <div class="ShareAnySeparate"></div>
        <div class="ShareAnyContainer">
            <div class="ShareAnyLeft" style="width: 300px;">
                <div class="titleBig">
                    参展记录
                </div>
                <div class="titleBig">
                    The exhibition record
                </div>
            </div>
            <div class="ShareAnyLeft" style="width:100%; line-height: 30px;">
                {$info['exhibit']}
            </div>
            <div class="ShareAnyClear"></div>
        </div>
    </if>
    <if condition="$data['artist']['comment'] neq ''">
        <div class="ShareAnySeparate"></div>
        <div class="ShareAnyContainer">
            <div class="line"></div>
        </div>
        <div class="ShareAnySeparate"></div>
        <div class="ShareAnyContainer">
            <div class="ShareAnyLeft" style="width: 300px;">
                <div class="titleBig">
                    评论文章
                </div>
                <div class="titleBig">
                    Comment
                </div>
            </div>
            <div class="ShareAnyLeft" style="width:100%; line-height: 30px;">
                {$info['comment']}
            </div>
            <div class="ShareAnyClear"></div>
        </div>
    </if>
{/block}
{/block}

{block name="footer"}
    <script>
        $(document).ready(function () {
            $(".show_hide").on("click", function () {
                $(".more").show();
                $(this).hide();
                $(".hide_hide").show();
            });
            $(".hide_hide").on("click", function () {
                $(".more").hide();
                $(this).hide();
                $(".show_hide").show();
            });
        });
    </script>

{/block}